<div class="posts view">
<h2><?php echo __('Post'); ?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($post['Post']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Type'); ?></dt>
		<dd>
			<?php echo $this->Html->link($post['Type']['name'], array('controller' => 'type_posts', 'action' => 'view', $post['Type']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('User Modified'); ?></dt>
		<dd>
			<?php echo h($post['Post']['user_modified']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Date Modified'); ?></dt>
		<dd>
			<?php echo h($post['Post']['date_modified']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Date Created'); ?></dt>
		<dd>
			<?php echo h($post['Post']['date_created']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Delete Flag'); ?></dt>
		<dd>
			<?php echo h($post['Post']['delete_flag']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Thumbnail Image Url'); ?></dt>
		<dd>
			<?php echo h($post['Post']['thumbnail_image_url']); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Post'), array('action' => 'edit', $post['Post']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete Post'), array('action' => 'delete', $post['Post']['id']), null, __('Are you sure you want to delete # %s?', $post['Post']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Posts'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Post'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Type Posts'), array('controller' => 'type_posts', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Type'), array('controller' => 'type_posts', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Comments'), array('controller' => 'comments', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Comment'), array('controller' => 'comments', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Post Contents'), array('controller' => 'post_contents', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Post Content'), array('controller' => 'post_contents', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Comments'); ?></h3>
	<?php if (!empty($post['Comment'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Content'); ?></th>
		<th><?php echo __('Author Id'); ?></th>
		<th><?php echo __('Date Modified'); ?></th>
		<th><?php echo __('Is Show'); ?></th>
		<th><?php echo __('Parent Id'); ?></th>
		<th><?php echo __('Post Id'); ?></th>
		<th><?php echo __('Image Url'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($post['Comment'] as $comment): ?>
		<tr>
			<td><?php echo $comment['id']; ?></td>
			<td><?php echo $comment['content']; ?></td>
			<td><?php echo $comment['author_id']; ?></td>
			<td><?php echo $comment['date_modified']; ?></td>
			<td><?php echo $comment['is_show']; ?></td>
			<td><?php echo $comment['parent_id']; ?></td>
			<td><?php echo $comment['post_id']; ?></td>
			<td><?php echo $comment['image_url']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'comments', 'action' => 'view', $comment['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'comments', 'action' => 'edit', $comment['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'comments', 'action' => 'delete', $comment['id']), null, __('Are you sure you want to delete # %s?', $comment['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Comment'), array('controller' => 'comments', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Post Contents'); ?></h3>
	<?php if (!empty($post['PostContent'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Title'); ?></th>
		<th><?php echo __('Short Description'); ?></th>
		<th><?php echo __('Content'); ?></th>
		<th><?php echo __('Language Id'); ?></th>
		<th><?php echo __('Seo Keyword'); ?></th>
		<th><?php echo __('H1'); ?></th>
		<th><?php echo __('Tw Short Link'); ?></th>
		<th><?php echo __('Post Id'); ?></th>
		<th><?php echo __('Seo Url'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($post['PostContent'] as $postContent): ?>
		<tr>
			<td><?php echo $postContent['id']; ?></td>
			<td><?php echo $postContent['title']; ?></td>
			<td><?php echo $postContent['short_description']; ?></td>
			<td><?php echo $postContent['content']; ?></td>
			<td><?php echo $postContent['language_id']; ?></td>
			<td><?php echo $postContent['seo_keyword']; ?></td>
			<td><?php echo $postContent['h1']; ?></td>
			<td><?php echo $postContent['tw_short_link']; ?></td>
			<td><?php echo $postContent['post_id']; ?></td>
			<td><?php echo $postContent['seo_url']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'post_contents', 'action' => 'view', $postContent['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'post_contents', 'action' => 'edit', $postContent['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'post_contents', 'action' => 'delete', $postContent['id']), null, __('Are you sure you want to delete # %s?', $postContent['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Post Content'), array('controller' => 'post_contents', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
